CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${PROJECT_ROOT})
include_directories(${PROJECT_ROOT}/comn/include)
include_directories(${PROJECT_ROOT}/http)

link_directories(${PROJECT_ROOT}/lib)
link_directories(${PROJECT_ROOT}/comn/lib)

include_directories(${PROJECT_ROOT}/HCNetSDK/include)
link_directories(${PROJECT_ROOT}/HCNetSDK/lib)

include_directories(${THIRD_PARTY}/sqlite/include)
link_directories(${THIRD_PARTY}/sqlite/lib)

aux_source_directory(. SOURCE)
FILE(GLOB HEADER "*.h")

set(CMAKE_MFC_FLAG 1)

add_executable(PersonCounter WIN32 ${SOURCE} ${HEADER}
    PersonCounter.rc
    )

target_link_libraries(PersonCounter
    debug comnd optimized comn
	debug httpd optimized http
	${LIB_PLATFORM}
	HCNetSDK
	sqlite3
	)

install(TARGETS PersonCounter DESTINATION .)